home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / slocate.postrm < prev    next >
Encoding:
Text File  |  2007-02-21  |  764 b   |  30 lines

  1. #!/bin/sh
  2.  
  3. SLOCATE_GROUP=slocate
  4. SLOCATE_DIR=/var/lib/slocate
  5.  
  6. set -e
  7.  
  8. suffix=notslocate
  9. if [ remove = "$1" ]; then
  10.     dpkg-divert --package slocate --remove --rename \
  11.         --divert /usr/bin/locate.$suffix \
  12.             /usr/bin/locate
  13.     dpkg-divert --package slocate --remove --rename \
  14.         --divert /usr/bin/updatedb.$suffix \
  15.             /usr/bin/updatedb
  16.     dpkg-divert --package slocate --remove --rename \
  17.         --divert /usr/share/man/man1/locate.$suffix.1.gz \
  18.             /usr/share/man/man1/locate.1.gz
  19.     dpkg-divert --package slocate --remove --rename \
  20.         --divert /usr/share/man/man1/updatedb.$suffix.1.gz \
  21.             /usr/share/man/man1/updatedb.1.gz
  22.     dpkg-divert --package slocate --remove --rename \
  23.         --divert /etc/cron.daily/find.$suffix \
  24.             /etc/cron.daily/find
  25.  
  26.     delgroup $SLOCATE_GROUP
  27. fi
  28.  
  29.  
  30.